<?php foreach ($doctor->getShows() as $doctorShow): ?>
    <p><a class="slideshow" href="/uploads/doctors/<?php echo $doctor->getId() ?>/<?php echo $doctorShow->getId() ?>/<?php echo $doctorShow->getPhotoUrl(96) ?>" title="<?php echo $doctorShow->getCaption() ?>"><?php echo $doctorShow->getCaption() ?></a></p>
<?php endforeach; ?>